package cm;

import java.util.Scanner;

class Node{
    int data;
    Node next;

    public Node(int data, Node next) {
        this.data = data;
        this.next = next;
    }
    public Node(){
    }
}
public class MyLinklist {
    Node h;
    void create(){
        h=new Node();
        h.next=null;
        Node s;
        Scanner scanner=new Scanner(System.in);
        int b= scanner.nextInt();
        while(b!=75){
            s=new Node(b,null);
            s.next=h.next;
            h.next=s;
            b= scanner.nextInt();
        }
    }
    void print(){
        Node p=h.next;
        while(p!=null){
            System.out.println(p.data);
            p=p.next;
        }
    }
    public static void main(String[] args) {
        
    }
}
